import React, { Component } from 'react';
import { useNavigate } from 'react-router-dom';
import {Button} from 'antd';


function Login() {
  const navigate = useNavigate();
    return (
        <div>
            <h1>我是登录页</h1>
            <Button type='primary' onClick={()=>navigate('/home')}>跳转到主页</Button>
        </div>
    );
}

export default Login;